<?php 
	
	function smarty_modifier_urls($string)
	{
		return preg_replace("/(www)\.([a-zA-Z0-9\_\-]+)\.([a-zA-Z]+)/", '<a href="http://$0" target="_blank">$0</a>', $string);
	}